package com.wly.datapool.monster
{
	import com.wly.datapool.define.GlobalDefine;

	public class MonsterPool
	{
		private var monsterArr:Array;
		static private var _instance:MonsterPool;
		
		public function MonsterPool()
		{
			_instance = this;
			init();
		}
		
		private function init():void
		{
			var monster:MonsterInfoStatic;
			monsterArr = [];
			
			monster            = new MonsterInfoStatic;
			monster.modelClass = BlameMaster;
			monster.name       = "小喽啰";
			monster.money      = 25;
			monster.deadSoundClass = MonsterDead;
			monster.down       = 1;
			monster.up         = 5;
			monster.left       = 9;
			monster.right      = 13;
			monsterArr.push(monster);
			
			monster            = new MonsterInfoStatic;
			monster.modelClass = Grunt;
			monster.name       = "兽族步兵";
			monster.money      = 30;
			monster.deadSoundClass = MonsterDead;
			monster.down       = 1;
			monster.up         = 6;
			monster.left       = 16;
			monster.right      = 11;
			monsterArr.push(monster);
		}
		
		static public function getInsance():MonsterPool
		{
			return _instance;
		}
		
		public function getMonsterInfoByIndex(index:int):MonsterInfoStatic
		{
			return monsterArr[index] as MonsterInfoStatic;
		}
	}
}